www.mxdraw.com
|
返回扩展数据
[helpstring("method getExData")] HRESULT getExData([out, retval] IMxDrawResbuf** pVal);
例如: 返回go函数的执行结果
IMxDrawUiPrPointPtr getPt; getPt.CreateInstance(__uuidof( MxDrawXLib::MxDrawUiPrPoint )); IMxDrawUiPrPoint* pGetPt = getPt; pGetPt->put_message(_T("点取绘制点")); pGetPt->go(); IMxDrawResbufPtr spExData = pGetPt->getExData(); long lRet = spExData->AtLong(0); // 得到返回结果. CString sT; sT.Format(_T("Ret::%d"),lRet); AfxMessageBox(sT);